<?php
session_start();

require("php/PasswordHash.php");
$hasher = new PasswordHash(8, false);

@$username = $_REQUEST["username"];
@$password = $_REQUEST["password"];
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if ($_SESSION["username"] == true && $_SESSION["password"]) {
    $con = mysqli_connect("localhost", "root", "deng123", "housekeeping", "3306") or die("unable to connect");
    $query = "select * from worker_details";
    $result = mysqli_query($con, $query);
    $count = 0;
    if ($result) {
        while ($row = mysqli_fetch_array($result)) {
            $dbusname = $row['username'];
            $dbpw = $row['password'];
            if ($username == $dbusname) {
                $check = $hasher->CheckPassword($password, $dbpw);
                if ($check) {
                    $count = $count + 1;
                }
            }
        }
        if ($count == 1) {
            $q = "select * from worker_details where username='$username'";
            $res = mysqli_query($con, $q);
            if ($res) {
                while ($row = mysqli_fetch_array($res)) {
                    $dbname = $row['name'];
                    $dbcategory = $row['category'];
                    $dbverification = $row['verification'];
                    $dbcard_no = $row['card_no'];
                    $dbcity = $row['city'];
                    if ($dbverification == 'Pending') {
?>
                        <!DOCTYPE html>
                        <html>

                        <head>

                            <meta charset="utf-8">
                            <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                            <meta name="description" content="">
                            <meta name="author" content="">
                            <meta name="viewport" content="width=device-width, initial-scale=1">
                            <title>好先生 | 家政服务</title>
                            <link rel="shortcut icon" href="img/favicon.ico" />
                            <!-- Bootstrap core CSS -->
                            <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

                            <!-- Custom fonts for this template -->
                            <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
                            <link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.css">

                            <!-- Plugin CSS -->
                            <link rel="stylesheet" href="device-mockups/device-mockups.min.css">

                            <!-- Custom styles for this template -->
                            <link href="css/style.css" rel="stylesheet">
                            <link href="css/hover-min.css" rel="stylesheet">
                            <meta name="viewport" content="width=device-width, initial-scale=1">
                            <link href="plugins/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">


                        </head>

                        <body id="page-top">

                            <!-- Navigation -->
                            <nav class="navbar navbar-expand-lg navbar-light fixed-top bg-info" id="mainNav">
                                <div class="container">
                                    <div class="navbar-header">
                                        <a class=" nav-link js-scroll-trigger" href="#top">
                                            <img class="img-rounded" src="img/logo.png" />
                                        </a>
                                    </div>
                                    &nbsp;
                                    <a class="navbar-brand " href="#page-top">
                                        <h2><small style="font-family: Arial;border-bottom: 2px solid gainsboro"><?php echo $dbname; ?></small></h2>
                                    </a>
                                    <button class="navbar-toggler navbar-toggler-right ml-auto" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
                                        菜单
                                        <i class="fas fa-bars"></i>
                                    </button>
                                    <div class="collapse navbar-collapse" id="navbarResponsive">
                                        <ul class="navbar-nav ml-auto">
                                            <li class="nav-item">
                                                <a class="nav-link js-scroll-trigger hvr-bounce-to-right" href="w_logout.php">退出</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </nav>


                            <section class="features" id="features" style="background:lavender">
                                <div class="container">
                                    <div style="text-align: center">
                                        <center>
                                            <h1 class="mb-5 text-info" style="font-family:Catamaran;font-size: 38px;margin-top: 80px;">您的验证正在等待中。
                                                请前往好先生中心进行文件校验. 如果已经访问过了，请通过电话或邮件联系我们。<br></h1>
                                            <h1 class="mb-5 text-primary" style="font-family:Catamaran;font-size: 25px;margin-top: 5px;">
                                                <?php
                                                @$qw = "SELECT * FROM cities where city='$dbcity' ";
                                                @$res1 = mysqli_query($con, $qw);
                                                if ($res1) {
                                                    while ($row = mysqli_fetch_array($res1)) {
                                                        $dbcity = $row['city'];
                                                        $dbcentre = $row['centre'];
                                                        echo $dbcity;
                                                        echo " 分支: ";
                                                        echo $dbcentre;
                                                        echo "<br>联系电话: +8618181075781";
                                                        echo "<br>邮箱: 1509939219@qq.com";
                                                    }
                                                }
                                                ?>
                                            </h1>
                                        </center>
                                    </div>
                            </section>
                            <footer>
                                <div class="container">
                                    <p>&copy; 好先生 家政服务. 版权所有.</p>
                                    <ul class="list-inline">
                                        <li class="list-inline-item">
                                            <a href="#">隐私</a>
                                        </li>
                                        <li class="list-inline-item">
                                            <a href="#">条款</a>
                                        </li>
                                    </ul>
                                </div>
                            </footer>
                            <!-- Bootstrap core JavaScript -->
                            <script src="vendor/jquery/jquery.min.js"></script>
                            <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

                            <!-- Plugin JavaScript -->
                            <script src="vendor/jquery-easing/jquery.easing.min.js"></script>


                            <script src="js/new-age.min.js"></script>
                        </body>

                        </html>
                        <?php
                    } else if ($dbverification == 'Confirmed') {
                        if ($dbcard_no == NULL) {
                            if ($dbcategory == '美容' or $dbcategory == '修理' or $dbcategory == '摄影') {
                        ?>
                                <!DOCTYPE html>
                                <html lang="en">

                                <head>

                                    <meta charset="utf-8">
                                    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                                    <meta name="description" content="">
                                    <meta name="author" content="">
                                    <title>好先生 | 家政服务</title>
                                    <link rel="shortcut icon" href="img/favicon.ico" />
                                    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
                                    <link rel="stylesheet" type="text/css" href="css/style.css">
                                    <script src="vendor/jquery/jquery.min.js"></script>
                                    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
                                    <script>
                                        function myFunction() {
                                            var service1 = document.getElementById("service1").value;
                                            var service2 = document.getElementById("service2").value;
                                            var rate_service2 = document.getElementById("rate_service2").value;
                                            var service3 = document.getElementById("service3").value;
                                            var rate_service3 = document.getElementById("rate_service3").value;

                                            if (service1 === service2 || service1 === service3) {
                                                alert("Please select different categories for service2 and 3 or leave them as blank");
                                                return false;
                                            }
                                            if (service2 !== "" && service3 !== "" && service2 === service3) {
                                                alert("Please select different categories for service2 and 3 or leave them as blank");

                                                return false;
                                            }
                                            if (service2 === "" && service3 !== "") {
                                                alert("Please fill up service 2 fields at first before proceeding to service 3");

                                                return false;
                                            }
                                            if (service2 !== "" && rate_service2 === "") {
                                                alert("Please Provide 费用 for 服务2");
                                                return false;
                                            }
                                            if (service2 === "" && rate_service2 !== "") {
                                                alert("Please Fill Up All the Fields for 服务 2");
                                                return false;
                                            }
                                            if (service3 !== "" && rate_service3 === "") {
                                                alert("Please Provide 费用 for 服务3");
                                                return false;
                                            }
                                            if (service3 === "" && rate_service3 !== "") {
                                                alert("Please Fill Up All the Fields for 服务 3");
                                                return false;
                                            }

                                        }
                                    </script>
                                </head>

                                <body>
                                    <div class="container-fluid register">
                                        <div class="row">
                                            <div class="col-md-3 register-left">
                                                <img src="img/logo.png" alt="" />
                                                <h1 style="font-family: Catamaran"><?php echo $dbname; ?></h1>
                                                <br>
                                                <h2 style="font-family: Catamaran">分类 : <?php echo $dbcategory; ?></h2>
                                                <br>
                                                <h2 style="font-family: Catamaran">请提供你的服务详情</h2>
                                            </div>
                                            <div class="col-md-9 register-right">
                                                <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist">
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="contact.html">帮助</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="w_logout.php">退出</a>
                                                    </li>
                                                </ul>
                                                <div class="tab-content" id="myTabContent">
                                                    <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                                        <br>
                                                        <h3 class="register-heading">好先生 伙伴 - 下一门户网站</h3>
                                                        <div class="register-form">
                                                            <form action="w_login_logic_card.php" method="post" onsubmit="return myFunction()">
                                                                <div class="row">
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service1" id="service1" required="required" class="form-control">
                                                                                <option value="" selected disabled>--选择服务1 *--</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate11" id="rate_service1" class="form-control" placeholder="服务1价格 元. *" value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service2" id="service2" class="form-control">
                                                                                <option value="">--选择服务2 (选项)</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate21" id="rate_service2" class="form-control" placeholder="服务2价格 元." value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service3" id="service3" class="form-control">
                                                                                <option value="">--选择服务3 (选项) </option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate31" id="rate_service3" class="form-control" placeholder="服务3价格 元. " value="" />
                                                                        </div>
                                                                    </div>
                                                                    <input type="hidden" name="name" value="<?php echo $dbname; ?>">
                                                                    <input type="hidden" name="username" value="<?php echo $username; ?>">
                                                                    <input type="hidden" name="password" value="<?php echo $password; ?>">
                                                                    <div class="col-lg-8"></div>
                                                                    <div class="col-lg-4">
                                                                        <input type="submit" class="btnRegister" value="Submit" />
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <footer>
                                        <div class="container">
                                            <p>&copy; 好先生 家政服务. 版权所有.</p>
                                            <ul class="list-inline">
                                                <li class="list-inline-item">
                                                    <a href="#">隐私</a>
                                                </li>
                                                <li class="list-inline-item">
                                                    <a href="#">条款</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </footer>
                                </body>

                                </html>
                            <?php
                            }
                            if ($dbcategory == '保姆') {
                            ?>
                                <!DOCTYPE html>
                                <html lang="en">

                                <head>

                                    <meta charset="utf-8">
                                    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                                    <meta name="description" content="">
                                    <meta name="author" content="">
                                    <title>好先生 | 家政服务</title>
                                    <link rel="shortcut icon" href="img/favicon.ico" />
                                    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
                                    <link rel="stylesheet" type="text/css" href="css/style.css">
                                    <script src="vendor/jquery/jquery.min.js"></script>
                                    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
                                    <script>
                                        function myFunction() {
                                            var service1 = document.getElementById("service1").value;
                                            var service2 = document.getElementById("service2").value;
                                            var rate_service2 = document.getElementById("rate_service2").value;
                                            var service3 = document.getElementById("service3").value;
                                            var rate_service3 = document.getElementById("rate_service3").value;

                                            if (service1 === service2 || service1 === service3) {
                                                alert("Please select different categories for service2 and 3 or leave them as blank");
                                                return false;
                                            }
                                            if (service2 !== "" && service3 !== "" && service2 === service3) {
                                                alert("Please select different categories for service2 and 3 or leave them as blank");

                                                return false;
                                            }
                                            if (service2 === "" && service3 !== "") {
                                                alert("Please fill up service 2 fields at first before proceeding to service 3");

                                                return false;
                                            }
                                            if (service2 !== "" && rate_service2 === "") {
                                                alert("Please Provide 费用 for 服务2");
                                                return false;
                                            }
                                            if (service2 === "" && rate_service2 !== "") {
                                                alert("Please Fill Up All the Fields for 服务 2");
                                                return false;
                                            }
                                            if (service3 !== "" && rate_service3 === "") {
                                                alert("Please Provide 费用 for 服务3");
                                                return false;
                                            }
                                            if (service3 === "" && rate_service3 !== "") {
                                                alert("Please Fill Up All the Fields for 服务 3");
                                                return false;
                                            }

                                        }
                                    </script>
                                </head>

                                <body>
                                    <div class="container-fluid register">
                                        <div class="row">
                                            <div class="col-md-3 register-left">
                                                <img src="img/logo.png" alt="" />
                                                <h1 style="font-family: Catamaran"><?php echo $dbname; ?></h1>
                                                <br>
                                                <h2 style="font-family: Catamaran">分类 : <?php echo $dbcategory; ?></h2>
                                                <br>
                                                <h2 style="font-family: Catamaran">请提供你的服务详情</h2><br>
                                            </div>
                                            <div class="col-md-9 register-right">
                                                <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist">
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="contact.html">帮助</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="w_logout.php">退出</a>
                                                    </li>
                                                </ul>
                                                <br>
                                                <div class="tab-content" id="myTabContent">
                                                    <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                                        <br>
                                                        <h3 class="register-heading">好先生 伙伴 - 下一步</h3>
                                                        <div class="register-form">
                                                            <form action="w_login_logic_card.php" method="post" onsubmit="return myFunction()">
                                                                <div class="row">
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service1" id="service1" required="required" class="form-control">
                                                                                <option value="" selected disabled>--选择服务1 *--</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate11" id="rate_service1" class="form-control" placeholder="服务1价格 / 天 元. *" value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service2" id="service2" class="form-control">
                                                                                <option value="">--选择服务2 (选项)</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate21" id="rate_service2" class="form-control" placeholder="服务2价格 / 天 元." value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service3" id="service3" class="form-control">
                                                                                <option value="">--选择服务3 (选项) </option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate31" id="rate_service3" class="form-control" placeholder="服务3价格 / 天 元. " value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-12">
                                                                        <center>
                                                                            <p><b>笔记</b>: Work duration is generally 3Hours / 天.. For extra work hour, bonus of ￥50/hour will be provided .</p>
                                                                        </center>
                                                                    </div>
                                                                    <input type="hidden" name="name" value="<?php echo $dbname; ?>">
                                                                    <input type="hidden" name="username" value="<?php echo $username; ?>">
                                                                    <input type="hidden" name="password" value="<?php echo $password; ?>">
                                                                    <div class="col-lg-8"></div>
                                                                    <div class="col-lg-4">
                                                                        <input type="submit" class="btnRegister" value="Submit" />
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <footer>
                                        <div class="container">
                                            <p>&copy; 好先生 家政服务. 版权所有.</p>
                                            <ul class="list-inline">
                                                <li class="list-inline-item">
                                                    <a href="#">隐私</a>
                                                </li>
                                                <li class="list-inline-item">
                                                    <a href="#">条款</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </footer>
                                </body>

                                </html>
                            <?php
                            }
                            if ($dbcategory == '家教') {
                            ?>
                                <!DOCTYPE html>
                                <html lang="en">

                                <head>

                                    <meta charset="utf-8">
                                    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                                    <meta name="description" content="">
                                    <meta name="author" content="">
                                    <title>好先生 | 家政服务</title>
                                    <link rel="shortcut icon" href="img/favicon.ico" />
                                    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
                                    <link rel="stylesheet" type="text/css" href="css/style.css">
                                    <script src="vendor/jquery/jquery.min.js"></script>
                                    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
                                    <script>
                                        function myFunction() {
                                            var service1 = document.getElementById("service1").value;
                                            var service2 = document.getElementById("service2").value;
                                            var rate_service2 = document.getElementById("rate_service2").value;
                                            var service3 = document.getElementById("service3").value;
                                            var rate_service3 = document.getElementById("rate_service3").value;

                                            if (service1 === service2 || service1 === service3) {
                                                alert("Please select different categories for service2 and 3 or leave them as blank");
                                                return false;
                                            }
                                            if (service2 !== "" && service3 !== "" && service2 === service3) {
                                                alert("Please select different categories for service2 and 3 or leave them as blank");

                                                return false;
                                            }
                                            if (service2 === "" && service3 !== "") {
                                                alert("Please fill up service 2 fields at first before proceeding to service 3");

                                                return false;
                                            }
                                            if (service2 !== "" && rate_service2 === "") {
                                                alert("Please Provide 费用 for 服务2");
                                                return false;
                                            }
                                            if (service2 === "" && rate_service2 !== "") {
                                                alert("Please Fill Up All the Fields for 服务 2");
                                                return false;
                                            }
                                            if (service3 !== "" && rate_service3 === "") {
                                                alert("Please Provide 费用 for 服务3");
                                                return false;
                                            }
                                            if (service3 === "" && rate_service3 !== "") {
                                                alert("Please Fill Up All the Fields for 服务 3");
                                                return false;
                                            }

                                        }
                                    </script>
                                </head>

                                <body>
                                    <div class="container-fluid register">
                                        <div class="row">
                                            <div class="col-md-3 register-left">
                                                <img src="img/logo.png" alt="" />
                                                <h1 style="font-family: Catamaran"><?php echo $dbname; ?></h1>
                                                <br>
                                                <h2 style="font-family: Catamaran">类型 : <?php echo $dbcategory; ?></h2>
                                                <br>
                                                <h2 style="font-family: Catamaran">请提供你的服务详情</h2><br>
                                            </div>
                                            <div class="col-md-9 register-right">
                                                <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist">
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="contact.html">帮助</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="w_logout.php">退出</a>
                                                    </li>
                                                </ul>
                                                <br>
                                                <div class="tab-content" id="myTabContent">
                                                    <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                                        <br>
                                                        <h3 class="register-heading">好先生 伙伴 - 下一门户网站</h3>
                                                        <div class="register-form">
                                                            <form action="w_login_logic_card.php" method="post" onsubmit="return myFunction()">
                                                                <div class="row">
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service1" id="service1" required="required" class="form-control">
                                                                                <option value="" selected disabled>--选择服务1 *--</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate11" id="rate_service1" class="form-control" placeholder="服务1价格 / 月 元. *" value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service2" id="service2" class="form-control">
                                                                                <option value="">--选择服务2 (选项)</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate21" id="rate_service2" class="form-control" placeholder="服务2价格 / 月 元." value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <select name="service3" id="service3" class="form-control">
                                                                                <option value="">--选择服务3 (选项) </option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-6">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate31" id="rate_service3" class="form-control" placeholder="服务3价格 / 月 元. " value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-12">
                                                                        <center>
                                                                            <p><b>笔记</b>: 工作时间一般为一小时/天，额外工作时间，将提供50元/小时的奖金.</p>
                                                                        </center>
                                                                    </div>
                                                                    <input type="hidden" name="name" value="<?php echo $dbname; ?>">
                                                                    <input type="hidden" name="username" value="<?php echo $username; ?>">
                                                                    <input type="hidden" name="password" value="<?php echo $password; ?>">
                                                                    <div class="col-lg-8"></div>
                                                                    <div class="col-lg-4">
                                                                        <input type="submit" class="btnRegister" value="Submit" />
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <footer>
                                        <div class="container">
                                            <p>&copy; 好先生 家政服务. 版权所有.</p>
                                            <ul class="list-inline">
                                                <li class="list-inline-item">
                                                    <a href="#">隐私</a>
                                                </li>
                                                <li class="list-inline-item">
                                                    <a href="#">条款</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </footer>
                                </body>

                                </html>
                            <?php
                            }
                            if ($dbcategory == '打包 & 搬运') {
                            ?>
                                <!DOCTYPE html>
                                <html lang="en">

                                <head>

                                    <meta charset="utf-8">
                                    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                                    <meta name="description" content="">
                                    <meta name="author" content="">
                                    <title>好先生 | 家政服务</title>
                                    <link rel="shortcut icon" href="img/favicon.ico" />
                                    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
                                    <link rel="stylesheet" type="text/css" href="css/style.css">
                                    <script src="vendor/jquery/jquery.min.js"></script>
                                    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
                                    <script>
                                        function myFunction() {
                                            var service1 = document.getElementById("service1").value;
                                            var service2 = document.getElementById("service2").value;
                                            var rate21 = document.getElementById("rate21").value;
                                            var rate22 = document.getElementById("rate22").value;
                                            if (service1 === service2) {
                                                alert("Please select a different category for service2 or leave it as blank");
                                                return false;
                                            }
                                            if (service2 !== "" && (rate21 === "" || rate22 === "")) {
                                                alert("Please provide all the rates for 服务2");
                                                return false;
                                            }
                                            if (service2 === "" && (rate21 !== "" || rate22 !== "")) {
                                                alert("Please Fill Up All the Fields for 服务 2");
                                                return false;
                                            }

                                        }
                                    </script>
                                </head>

                                <body>
                                    <div class="container-fluid register">
                                        <div class="row">
                                            <div class="col-md-2 register-left">
                                                <img src="img/logo.png" alt="" />
                                                <h1 style="font-family: Catamaran"><?php echo $dbname; ?></h1>
                                                <br>
                                                <h2 style="font-family: Catamaran">分类 : <?php echo $dbcategory; ?></h2>
                                                <br>
                                            </div>
                                            <div class="col-md-10 register-right">
                                                <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist">
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="contact.html">帮助</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="w_logout.php">退出</a>
                                                    </li>
                                                </ul>
                                                <br>
                                                <div class="tab-content" id="myTabContent">
                                                    <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                                        <br>
                                                        <h3 class="register-heading">好先生 伙伴 - 下一门户网站</h3>
                                                        <div class="register-form">
                                                            <form action="w_login_logic_card.php" method="post" onsubmit="return myFunction()">
                                                                <div class="row">
                                                                    <div class="col-lg-4">
                                                                        <div class="form-group">
                                                                            <select name="service1" id="service1" required="required" class="form-control">
                                                                                <option value="" selected disabled>--选择服务1 *--</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate11" id="rate11" class="form-control" placeholder="服务1价格 元. 市内" value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate12" id="rate12" class="form-control" placeholder="服务1价格 元. 每200km" value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <div class="form-group">
                                                                            <select name="service2" id="service2" class="form-control">
                                                                                <option value="">--选择服务2 (选项)</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate21" id="rate21" class="form-control" placeholder="服务2价格 元. 市内" value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate22" id="rate22" class="form-control" placeholder="服务2价格 元. per 200km" value="" />
                                                                        </div>
                                                                    </div>
                                                                    <input type="hidden" name="name" value="<?php echo $dbname; ?>">
                                                                    <input type="hidden" name="username" value="<?php echo $username; ?>">
                                                                    <input type="hidden" name="password" value="<?php echo $password; ?>">
                                                                    <div class="col-lg-8"></div>
                                                                    <div class="col-lg-4">
                                                                        <input type="submit" class="btnRegister" value="提交" />
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <footer>
                                        <div class="container">
                                            <p>&copy; 好先生 家政服务. 版权所有.</p>
                                            <ul class="list-inline">
                                                <li class="list-inline-item">
                                                    <a href="#">隐私</a>
                                                </li>
                                                <li class="list-inline-item">
                                                    <a href="#">条款</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </footer>
                                </body>

                                </html>
                            <?php
                            }
                            if ($dbcategory == '装修') {
                            ?>
                                <!DOCTYPE html>
                                <html lang="en">

                                <head>

                                    <meta charset="utf-8">
                                    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                                    <meta name="description" content="">
                                    <meta name="author" content="">
                                    <title>好先生 | 家政服务</title>
                                    <link rel="shortcut icon" href="img/favicon.ico" />
                                    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
                                    <link rel="stylesheet" type="text/css" href="css/style.css">
                                    <script src="vendor/jquery/jquery.min.js"></script>
                                    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
                                    <script>
                                        function myFunction() {
                                            var service1 = document.getElementById("service1").value;
                                            var service2 = document.getElementById("service2").value;
                                            var rate21 = document.getElementById("rate21").value;
                                            var rate22 = document.getElementById("rate22").value;
                                            var rate23 = document.getElementById("rate23").value;
                                            if (service1 === service2) {
                                                alert("请为服务2选择不同的服务");
                                                return false;
                                            }
                                            if (service2 !== "" && (rate21 === "" || rate22 === "" || rate23 === "")) {
                                                alert("请提供服务2的报价");
                                                return false;
                                            }
                                            if (service2 === "" && (rate21 !== "" || rate22 !== "" || rate23 !== "")) {
                                                alert("请填写服务2所有的字段");
                                                return false;
                                            }

                                        }
                                    </script>
                                </head>

                                <body>
                                    <div class="container-fluid register">
                                        <div class="row">
                                            <div class="col-md-2 register-left">
                                                <img src="img/logo.png" alt="" />
                                                <h1 style="font-family: Catamaran"><?php echo $dbname; ?></h1>
                                                <br>
                                                <h2 style="font-family: Catamaran">分类 : <?php echo $dbcategory; ?></h2>
                                                <br>
                                            </div>
                                            <div class="col-md-10 register-right">
                                                <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist">
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="contact.html">帮助</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" href="w_logout.php">退出</a>
                                                    </li>
                                                </ul>
                                                <br>
                                                <div class="tab-content" id="myTabContent">
                                                    <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                                        <br>
                                                        <h3 class="register-heading">好先生 伙伴 - 下一门户网站</h3>
                                                        <div class="register-form">
                                                            <form action="w_login_logic_card.php" method="post" onsubmit="return myFunction()">
                                                                <div class="row">
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <select name="service1" id="service1" required="required" class="form-control">
                                                                                <option value="" selected disabled>--选择服务1 *--</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate11" id="rate11" class="form-control" placeholder="1元." value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate12" id="rate12" class="form-control" placeholder="2元." value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate13" id="rate13" class="form-control" placeholder="3元." value="" required />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <select name="service2" id="service2" class="form-control">
                                                                                <option value="">--选择服务2--</option>
                                                                                <?php
                                                                                @$qw = "SELECT service FROM service where category='$dbcategory' order by service";
                                                                                @$res1 = mysqli_query($con, $qw);
                                                                                if ($res1) {
                                                                                    while ($row = mysqli_fetch_array($res1)) {
                                                                                        $dbservice = $row['service'];
                                                                                ?>
                                                                                        <option value="<?php echo $dbservice; ?>"><?php echo $dbservice; ?></option>
                                                                                <?php
                                                                                    }
                                                                                }
                                                                                ?>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate21" id="rate21" class="form-control" placeholder="1元." value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate22" id="rate22" class="form-control" placeholder="2元." value="" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-lg-3">
                                                                        <div class="form-group">
                                                                            <input type="number" name="rate23" id="rate23" class="form-control" placeholder="3元." value="" />
                                                                        </div>
                                                                    </div>
                                                                    <input type="hidden" name="name" value="<?php echo $dbname; ?>">
                                                                    <input type="hidden" name="username" value="<?php echo $username; ?>">
                                                                    <input type="hidden" name="password" value="<?php echo $password; ?>">
                                                                    <div class="col-lg-8"></div>
                                                                    <div class="col-lg-4">
                                                                        <input type="submit" class="btnRegister" value="Submit" />
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <footer>
                                        <div class="container">
                                            <p>&copy; 好先生 家政服务. 版权所有.</p>
                                            <ul class="list-inline">
                                                <li class="list-inline-item">
                                                    <a href="#">隐私</a>
                                                </li>
                                                <li class="list-inline-item">
                                                    <a href="#">条款</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </footer>
                                </body>

                                </html>
                        <?php
                            }
                        } else {
                            $_SESSION['name'] = $dbname;
                            header("location:worker_profile.php");
                        }
                    } else {
                        ?>
                        <!DOCTYPE html>
                        <html>

                        <head>

                            <meta charset="utf-8">
                            <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                            <meta name="description" content="">
                            <meta name="author" content="">
                            <meta name="viewport" content="width=device-width, initial-scale=1">
                            <title>好先生 | 家政服务</title>
                            <link rel="shortcut icon" href="img/favicon.ico" />
                            <!-- Bootstrap core CSS -->
                            <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

                            <!-- Custom fonts for this template -->
                            <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
                            <link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.css">

                            <!-- Plugin CSS -->
                            <link rel="stylesheet" href="device-mockups/device-mockups.min.css">

                            <!-- Custom styles for this template -->
                            <link href="css/style.css" rel="stylesheet">
                            <link href="css/hover-min.css" rel="stylesheet">
                            <meta name="viewport" content="width=device-width, initial-scale=1">
                            <link href="plugins/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">


                        </head>

                        <body id="page-top">

                            <!-- Navigation -->
                            <nav class="navbar navbar-expand-lg navbar-light fixed-top bg-info" id="mainNav">
                                <div class="container">
                                    <div class="navbar-header">
                                        <a class=" nav-link js-scroll-trigger" href="#top">
                                            <img class="img-rounded" src="img/logo.png" />
                                        </a>
                                    </div>
                                    &nbsp;
                                    <a class="navbar-brand " href="#page-top">
                                        <h2><small style="font-family: Arial;border-bottom: 2px solid gainsboro"><?php echo $dbname; ?></small></h2>
                                    </a>
                                    <button class="navbar-toggler navbar-toggler-right ml-auto" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
                                        菜单
                                        <i class="fas fa-bars"></i>
                                    </button>
                                    <div class="collapse navbar-collapse" id="navbarResponsive">
                                        <ul class="navbar-nav ml-auto">
                                            <li class="nav-item">
                                                <a class="nav-link js-scroll-trigger hvr-bounce-to-right" href="w_logout.php">退出</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </nav>


                            <section class="features" id="features" style="background:lavender">
                                <div class="container">
                                    <div style="text-align: center"><br>
                                        <center>
                                            <h1 class="mb-5 text-info" style="font-family:Catamaran;font-size: 38px;margin-top: 80px;">我们很遗憾的通知你，您不具备担任好先生伙伴的资格.<br></h1>
                                            <br>
                                            <h1 style="font-family: 'Bradley Hand ITC'">谢谢你..</h1><br><br>
                                        </center>
                                    </div>
                            </section>
                            <footer>
                                <div class="container">
                                    <p>&copy; 好先生 家政服务. 版权所有.</p>
                                    <ul class="list-inline">
                                        <li class="list-inline-item">
                                            <a href="#">隐私</a>
                                        </li>
                                        <li class="list-inline-item">
                                            <a href="#">条款</a>
                                        </li>
                                    </ul>
                                </div>
                            </footer>
                            <!-- Bootstrap core JavaScript -->
                            <script src="vendor/jquery/jquery.min.js"></script>
                            <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

                            <!-- Plugin JavaScript -->
                            <script src="vendor/jquery-easing/jquery.easing.min.js"></script>


                            <script src="js/new-age.min.js"></script>
                        </body>

                        </html>
            <?php
                    }
                }
            }
        } else {
            ?>
            <!DOCTYPE html>
            <html>

            <head>

                <meta charset="utf-8">
                <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                <meta name="description" content="">
                <meta name="author" content="">
                <meta name="viewport" content="width=device-width, initial-scale=1">
                <title>好先生 | 家政服务</title>
                <link rel="shortcut icon" href="img/favicon.ico" />
                <!-- Bootstrap core CSS -->
                <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

                <!-- Custom fonts for this template -->
                <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
                <link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.css">

                <!-- Plugin CSS -->
                <link rel="stylesheet" href="device-mockups/device-mockups.min.css">

                <!-- Custom styles for this template -->
                <link href="css/style.css" rel="stylesheet">
                <link href="css/hover-min.css" rel="stylesheet">
                <meta name="viewport" content="width=device-width, initial-scale=1">
                <link href="plugins/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">


            </head>

            <body id="page-top">

                <!-- Navigation -->
                <nav class="navbar navbar-expand-lg navbar-light fixed-top bg-info" id="mainNav">
                    <div class="container">
                        <div class="navbar-header">
                            <a class=" nav-link js-scroll-trigger" href="#top">
                                <img class="img-rounded" src="img/logo.png" />
                            </a>
                        </div>
                        &nbsp;
                        <a class="navbar-brand " href="#page-top">
                            <h2><small style="font-family: Arial;border-bottom: 2px solid gainsboro">服务专家</small></h2>
                        </a>
                        <button class="navbar-toggler navbar-toggler-right ml-auto" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
                            菜单
                            <i class="fas fa-bars"></i>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarResponsive">
                            <ul class="navbar-nav ml-auto">
                                <li class="nav-item">
                                    <a class="nav-link js-scroll-trigger hvr-bounce-to-right" href="logout.php">首页</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link js-scroll-trigger hvr-bounce-to-right" href="workerlogin.html">专业服务</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link js-scroll-trigger hvr-bounce-to-right" href="contact.html">联系我们</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </nav>


                <section class="features" id="features" style="background:lavender">
                    <div class="container">
                        <div style="text-align: center">
                            <h1 class="mb-5 text-info" style="font-family:Catamaran;font-size: 50px;margin-top: 150px">哎呀！用户或密码不正确.
                                <br>请重新尝试.
                            </h1><br><br>
                        </div>
                </section>
                <footer>
                    <div class="container">
                        <p>&copy; 好先生 家政服务. 版权所有.</p>
                        <ul class="list-inline">
                            <li class="list-inline-item">
                                <a href="#">隐私</a>
                            </li>
                            <li class="list-inline-item">
                                <a href="#">条款</a>
                            </li>
                        </ul>
                    </div>
                </footer>
                <!-- Bootstrap core JavaScript -->
                <script src="vendor/jquery/jquery.min.js"></script>
                <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

                <!-- Plugin JavaScript -->
                <script src="vendor/jquery-easing/jquery.easing.min.js"></script>


                <script src="js/new-age.min.js"></script>
            </body>

            </html>
<?php
            session_destroy(); //destroy the session
            exit();
        }
    }
} else {
    header("location:workerlogin.html");
}

?>